import React, { Component } from 'react';
import Header from '../ui/header/Header'
import MineUi from '../ui/mineConent/MineUi'
import { connect } from 'react-redux'
import { loadDataAsync } from '../../login/actionCreater'


@connect(
  (state) =>{
    return{
      info:state.login.list
    }
  },
  (dispatch)=>({
    loadData(){
      dispatch(loadDataAsync())
    }
  })
) 
class MinePage extends Component {
  constructor(props){
   super(props)
  }
  render() {
    return (
      <div style={{backgroundColor: '#eceff2'}}>
        <Header title='个人中心'></Header> 
        <MineUi {...this.props}></MineUi>
      </div>
    );
  }
}
export default MinePage
